package homework2;

import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;

/**
 * Created by Time to be on 29.06.2014.
 */
public class LengthOfString {

    @Test(dataProvider = "name-provider")
    public void lengthOfString(String str){
        Assert.assertEquals(str.length(),10);
        System.out.println(str.length());
    }

    @DataProvider(name = "name-provider")
    public Object[][] provideData() {
        return new Object[][]{
                {"string1_00"},
                {"ten_chars!"},
                {"string3_01"}
        };

    }

// end.
}

